package com.example.controller.service;

import com.alibaba.fastjson.JSONObject;
import com.example.annation.Service;
import com.example.controller.TestService;
import com.example.util.Results;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Classname TestServiceImpl
 * @Description TODO
 * @Date 2023/4/25 20:04
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Service
public class TestServiceImpl implements TestService {

    @Override
    public JSONObject getJSONObject(String msg) {
        return Results.success(msg+" "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
    }
}
